package com.yuejian_06.yuejian_06.service;

import com.yuejian_06.yuejian_06.bean.CourseBean;
import com.yuejian_06.yuejian_06.bean.SuccessBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;


public interface CourseService {

    //课程列表
    @GET("courseList")
    Call<List<CourseBean>> courseList();
    //课程列表-等级查询
    @GET("getcourseStar")
    Call<List<CourseBean>> getcourseStar(
            @Query("star") String star);
    //课程详情
    @GET("getcourse")
    Call<CourseBean> getcourse(
            @Query("course_id") String course_id);
    //课程列表-搜索
    @GET("getcourseSearch")
    Call<List<CourseBean>> getcourseSearch(
            @Query("name") String name);
    //课程下订单
    @GET("courseOrder")
    Call<SuccessBean> courseOrder(
            @Query("user_id") String user_id,
            @Query("course_id") String course_id,
            @Query("sign_name") String sign_name,
            @Query("IDcard") String IDcard,
            @Query("sum_price") String sum_price,
            @Query("sign_tele") String sign_tele
            );


}
